import Vue from 'vue'
import App from './App'


import {myRequest} from './utis/api.js'


Vue.prototype.$myRequest =myRequest
Vue.filter('dateFmt',(date)=>{
	const nDate = new Date(date)
	const year = nDate.getFullYear()
	const month =nDate.getMonth().toString().padStart(2,0)
	const day =nDate.getDate().toString().padStart(2,0)
	const Hours = nDate.getHours().toString().padStart(2,0)
	const miutes = nDate.getMinutes().toString().padStart(2,0)
	const scends =nDate.getSeconds().toString().padStart(2,0)
	return year+'-'+month+'-'+day+''+Hours+":"+miutes+":"+scends
})

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()

